package com.memory.modules.business.service.earn;

import com.memory.modules.business.domain.earn.AccountEarnRecord;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface AccountEarnRecordService {
    Page<AccountEarnRecord> findPage(Example<AccountEarnRecord> example);

    AccountEarnRecord create(AccountEarnRecord record);

    void createAccountEarnRecord(Long accountId, Integer count, BigDecimal price, Date createDate);

    List<AccountEarnRecord> findByAccountId(Long id);
}
